/* 用户角色授权接口 */
/* 根据当前登录用户查询已创建的角色 */
export const userCreateRole = (data)=>{
  if(data.roleName == undefined){
    return axios({
      url:`/rbac/role/userCreateRole?type=${data.type}`,
      method:'get'
    })
  }else{
    return axios({
      url:`/rbac/role/userCreateRole?type=${data.type}&roleName=${data.roleName}`,
      method:'get'
    })
  }
}
/* 用户角色授权 */
export const userRoleEmpower = (data)=>{
  return axios({
    url:'/rbac/userRole',
    method:'put',
    data
  })
}
